{assign name="field" value=":sp_column(55)"}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{$field['column_title']} - {$site_title}</title>
    <meta name="keywords" content="{$field['column_keywords']}">
    <meta name="description" content="{$field['column_description']}">
</head>
<body>
    {include file="cn/include/header"}
    <div>
        <h2>栏目图片</h2>
        {assign name="list" value=":sf_imgslist($field['column_image'])"}
        <table>
            <tr>
                {volist name="list" id="vo"}
                    <td><img src="{$vo['file_path']}" height="50"></td>
                {/volist}
            </tr>
        </table>
    </div>
    <div>
        <h2>栏目内容</h2>
        {$field['column_details']|raw}
    </div>
    <hr>
    <div>
        <h2>下载分类<small>(多级分类自己处理)</small></h2>
        {assign name="list" value=":sp_cate(55)"}
        {volist name="list" id="vo"}
            <div>
                <a href="{:sf_url('download', $vo)}">{$vo['wscate_title']}</a>
            </div>
        {/volist}
    </div>
    <div style="overflow: hidden;">
        <h2>下载列表</h2>
        <?php 
            $option = [
                'pageurl' => sf_url('download', [], true),
                'cate' => true,
                'param' => true,
            ];
            $list = sp_article(55, 0, 3, $option);
        ?>
        {volist name="list" id="vo"}
            <div style="float: left; overflow: hidden; border: 1px solid #ccc; margin: 0 10px 10px 0;">
                <a href="{:sf_download($vo['wsarticle_id'])}" target="_blank">
                    <table>
                        <tr><td>{$vo['wscate']['wscate_name']}</td></tr>
                        <tr><td><img src="{:sf_getimg($vo['wsarticle_image'])}" width="200" height="160"></td></tr>
                        <tr><td>{$vo['wsarticle_title']}</td></tr>
                        <tr><td>下载：{$vo['wsarticle_views']}次</td></tr>
                    </table>
                </a>
            </div>
        {/volist}
    </div>
    <div class="page" style="overflow: hidden;">
        {$list->render()|raw}
    </div>

    
    {include file="cn/include/footer"}
</body>
</html>